package com.atguigu.flightservice.controller;

import com.atguigu.flightservice.entity.EmpInfo;
import com.atguigu.flightservice.handler.PostionChangeCallbackHandler;
import com.atguigu.servicebase.responsibilityLinkHandler.BizHandlerChain;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author lwh
 * @description:
 * @date 2023/1/31 9:39
 */
@RestController//接口都是返回这种，@Controller  @ResponseBody
@Api(description="航班管理")
@CrossOrigin  //解决跨域
@RequestMapping("/flightservice/flight")
public class TestController {

    /**
     * 家庭成员关系大数据导出
     */
    @ApiOperation("首页大数据量导出")
    @PostMapping("/exportBigRelationshipInfo")
    public void exportBigRelationshipInfo() {

        System.out.println("测试开始！！！");
        BizHandlerChain.newInstance(PostionChangeCallbackHandler.class).start(new EmpInfo("123", "张三"));
        System.out.println("测试结束");
    }

}
